import {constant} from "../constant";


const initState=constant.LOGOUT
export default function loginReducer(preState=initState,action){
    const {type}=action
    switch (type)
    {
        case constant.LOGIN:
            return true;
        case constant.LOGOUT:
            return false;
        default:
            return false;
    }
}